- content_for :meta do
  %meta{:name => "Description", :content => @gallery.text_description}
  %meta{:name => "Keywords", :content => @gallery.name}
- content_for :title do
  = @gallery.name
- if logged_in? and current_user.is_admin?
  - content_for :admin_nav do
    %div.edit
      [
      %a{:href => edit_gallery_url(@gallery), :title => "Edit " + @gallery.name}edit
      ]
= render :partial => @gallery.gallery_template.name